package com.pingba.dao.location;

import com.pingba.dao.BaseDao;
import com.pingba.entity.location.City;
import com.pingba.entity.location.District;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2015/12/23 0023.
 */
@Repository
public interface DistrictDao extends BaseDao<District, Long> {

    /**
     * 得到该城市下所有的区
     * @param city
     * @return
     */
    List<District> getDistrictOfCity(City city);
}
